<?php
/**
 * Punny - The most easy-to-use PHP MVC framework
 * 
 * Copyright (c) 2010  
 *
 * @author email :lx.xin@qq.com
 */
 class Admin_BaseController extends Zend_Controller_Action{
	function init(){		
		$this->registry = Zend_Registry::getInstance();
        $this->view = $this->registry['view'];
		$this->view->setScriptPath('./application/views/scripts/admin/');
		//$tpl=$this->_request->getBaseUrl();
        $this->view->baseUrl = $this->_request->getBaseUrl();
		if(empty($_SESSION['username'])){
			echo $this->view->render('login.html');
			exit;
		}

	}

	
	
 }
 ?>